export function clsup_e(t){
    switch(t){
        case "0":{
            clsshow(
                "序章",
            "<p>测试内容！</p>",
            0,
            "G1_0",
            //'<a href="#" class="modal-close waves-effect waves-green btn-flat" onclick="clsfin(\'G1\',\'1\')">准备好了！</a>'
            [{"btnname":"准备好了","btnfun":"clsfin(\'G1\',\'e')"}]
            );
            break;
        }
        case "e":{
            clsshow(
                "最后",
                "<p>游戏已经结束了，重新开始？</p>",
                0,
                "G1_0",
                //'<a href="#" class="modal-close waves-effect waves-green btn-flat" onclick="clsfin(\'G1\',\'r\')">确定</a><a href="#" class="modal-close waves-effect waves-green btn-flat" onclick="clsfin(\'G1\',\'e\')">确定</a>'
                [{"btnname":"重来","btnfun":"clsfin(\'G1\',\'r\')"},{"btnname":"不要","btnfun":"clsfin(\'G1\',\'e\')"}]
            );
            break;
        }
        default :{
            alert("您未提供正确的调用代码");
        }
    }
}
export function clsfin_e(info){
    /*alert("本关卡完成", "成功");*/
    switch(info){
        case "r":{
            if(!localStorage.getItem("lgame")){
                let data={
                    "G1":"0"
                }
                localStorage.setItem("lgame",JSON.stringify(data));
            }else{
                let data=JSON.parse(localStorage.getItem("lgame"));
                data["G1"]="0";
                localStorage.setItem("lgame",JSON.stringify(data));
            }
            ClsPicOff();
            break;
        }
        default:{
            if(!localStorage.getItem("lgame")){
                let data={
                    "G1":info
                }
                localStorage.setItem("lgame",JSON.stringify(data));
            }else{
                let data=JSON.parse(localStorage.getItem("lgame"));
                data["G1"]=info;
                localStorage.setItem("lgame",JSON.stringify(data));
            }
            ClsPicOff();
            break;
        }
    }
}


/*  <br><iframe src=\"bpm.html\" frameborder=\"0\" seamless></iframe>*/